#include "cryptopp/md5.h"
#include "md5.h"

/*************************************************
* md5.cpp
* Modifications (C) 2007 Llew goodstadt          *
*************************************************/

struct encryption::md5::t_impl
{
    CryptoPP::MD5 md5;
};



encryption::md5::md5()
:pimpl(new t_impl){   }
void encryption::md5::operator()(const std::string& in, t_digest_N<4>& digest)
{
    pimpl->md5.CalculateDigest((byte*)(&digest.digest), (byte*)(in.data()), in.length());
}






